package com.cheejee.goodscenter.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.cheejee.goodscenter.module.entity.SaleCount;
@Mapper
public interface SaleCountMapper {
    int deleteByPrimaryKey(Long id);

//    int insert(SaleCount record);

    int insertSelective(SaleCount record);

    SaleCount selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SaleCount record);

//    int updateByPrimaryKey(SaleCount record);
    
 // ################ 以上为mybatis generator生成 #####################
    
    List<SaleCount> selectBySelective(@Param("goodsId")Long goodsId, @Param("skuId")Long skuId);
    
    List<SaleCount> selectBetween(@Param("goodsId")Long goodsId, @Param("skuId")Long skuId, @Param("begin")Date begin, @Param("end")Date end);
    
    int deleteById(@Param("id")Long...id);
}